package a02demo2;

public class test74 {
    public static void main(String[] args) {
        Manager m = new Manager("001","zhangsan",15000,7000);
        System.out.println(m.getId() + " " + m.getName() + " " + m.getSalary() + " " + m.getBonus());
        m.work();
        m.eat();

        Cook c = new Cook("002","lisi",8000);
        System.out.println(c.getId() + " " + c.getName() + " " + c.getSalary());
        c.work();
        c.eat();
    }
}
